home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 24
/
Aminet 24 (1998)(GTI - Schatztruhe)[!][Apr 1998].iso
/
Aminet
/
comm
/
mail
/
Mutt089src.lha
/
Mutt-0.89i-AMIGA
/
src
/
getenv.c
< prev
next >
Wrap
Text File
|
1998-01-28
|
254b
|
14 lines
char *getenv(const char *name) {
FILE *ENV;
char env[200];
sprintf(env,"/ENV/%s",name);
if ((ENV=fopen(env,"r"))) {
(void) fgets(env, 200, ENV);
fclose(ENV);
} else return NULL;
if (strncmp("/ENV",env,4)==0) return NULL;
return strdup(env);
}